package com.suyuan.service;

import com.github.pagehelper.PageInfo;
import com.suyuan.entity.TransportRouteInfor;
import com.suyuan.web.Page;

import java.util.List;

/**
 * Created by yang on 2018/2/5.
 */
public interface TransportRouteInforService {

    List<TransportRouteInfor> list();

    int delete(Integer id);

    int save (TransportRouteInfor route);

    PageInfo inquiry(Integer routeId, Integer stationNo, Page page);

    int update(TransportRouteInfor route);

    TransportRouteInfor findById(Integer id);

    void addRouteAndStation(TransportRouteInfor route, String[] stationNames)throws Exception;
}
